#ifndef TABLEDIALOG_H
#define TABLEDIALOG_H

#include <QDialog>
#include <QSpinBox>
#include <QLabel>
#include <QPushButton>
#include <QGridLayout>
#include <memory>

class TableDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TableDialog(QWidget *parent = nullptr);
    ~TableDialog() override;

    int rows() const;
    int columns() const;

private:
    std::unique_ptr<QSpinBox> rowsSpinBox;
    std::unique_ptr<QSpinBox> columnsSpinBox;
    std::unique_ptr<QPushButton> okButton;
    std::unique_ptr<QPushButton> cancelButton;
};

#endif // TABLEDIALOG_H